<!DOCTYPE html>
<html>
{% load staticfiles %}

<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <title>{% block title %}机构首页{% endblock %}</title>
    <link rel="stylesheet" type="text/css" href="{% static 'css/reset/reset.css' %}">
    <link rel="stylesheet" type="text/css" href="{% static 'css/ncss.css' %}">

    {% block custom_css %}{% endblock %}
</head>

<body>

<div class="all_page_head">
    <div class="wp">
        <div class="all_page_head_message clearfix" style="height: 72px;width: 100%;">
            <a href="{% url 'index' %}"><img src="{% static 'images/logo_11261.png' %}" alt="" style="height: 72px" class="fl"></a>
            <div class="go_url_box fl" style="height: 72px;width: 300px;">
                <a href="{% url 'index' %}">
                    <div class="url_div_box fl" style="text-indent: 30px">首页</div>
                </a>
                <a href="{% url 'course:list' %}">
                    <div class="url_div_box fl">课程</div>
                </a>
                <a href="{% url 'course:list' %}?sort=price">
                    <div class="url_div_box fl">付费课程</div>
                </a>
                <a href="{% url 'org:teachers' %}">
                    <div class="url_div_box fl">教师</div>
                </a>
            </div>
            <div class="search_text fl">
                <span class="selectOption" id="jsSelectOption"
                      data-value="{% if s_type %}{{ s_type }}{% else %}course{% endif %}" style="display: none;">
                                {% if s_type == 'course' %}公开课{% endif %}
                </span>
                <input id="search_keywords" class="search_keywords_textarea" type="text" value="{{ keywords }}"
                       placeholder="搜索您想要的课程"/>
                <div class="search_keywords_btn" id="jsSearchBtn">Search</div>
            </div>
            <div class="my_img_course fl">
                {% if user.is_authenticated %}
                    <div class="if_user_auth">
                        <div class="fl"><a href="{% url 'users:mycourse' %}">
                            <div class="enter_my_course_center">我的课程</div>
                        </a></div>
                        <div class="user_auth_welcome">欢迎您,{% if user.nick_name %}{{ user.nick_name }}{% else %}
                            {{ user.username }}{% endif %}</div>
                        <a href="{% url 'logout' %}">
                            <div class="user_quit">Quit</div>
                        </a>
                        <div class="fl"><a href="{% url 'users:info' %}"><img class="if_user_auth_img"
                                                                              src="{{ user.image.url }}" alt=""></a>
                        </div>
                    </div>
                {% else %}
                    <div class="if_user_not_auth">
                        <div class="fl" style="width: 60px;height: 72px;"></div>
                        <a href="{% url 'register' %}">
                            <div class="url_div_box_rl fl">注册</div>
                        </a>
                        <a href="{% url 'login' %}">
                            <div class="url_div_box_rl fl">登陆</div>
                        </a>
                    </div>
                {% endif %}
            </div>
        </div>
    </div>
</div>

<section>
    <div class="detail_main_head"
         style="background: url({% static 'images/ndetail/orgcenter2.png' %})no-repeat center top;">
        <div class="wp">
            <div class="teacher_detail_bogbox">
                <div class="teacher_detail_main_box clearfix">
                    <div class="leftbox fl"><img src="{{ MEDIA_URL }}{{ course_org.image }}" alt=""></div>
                    <div class="centerbox fl">
                        <div class="topbox" style="height: 48px;"></div>
                        <div class="middlebox" style="height: 48px;">{{ course_org.name }}</div>
                        <div class="add_bottombox">所在城市:&nbsp;&nbsp;{{ course_org.city }}</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>




{% block main %}
{% endblock %}

{% block footer %}
    <footer>
        <div class="footer">
            <div class="wp clear">
                <span class="pagefooter">2019 在线IT教学平台</span>
            </div>
        </div>
    </footer>
{% endblock %}


</body>
</html>
